Skip to content

Comments

feat(den): add Polar paywall gating for cloud workers#637

Merged
benjaminshafii merged 1 commit intodevfrom
feat/den-cloud-worker-paywall-polar
Feb 21, 2026
Merged

feat(den): add Polar paywall gating for cloud workers#637
benjaminshafii merged 1 commit intodevfrom
feat/den-cloud-worker-paywall-polar

Conversation

@benjaminshafii
Copy link
Member

Summary

  • gate POST /v1/workers cloud provisioning behind a Polar entitlement check, returning 402 payment_required + checkout URL for users without the required benefit
  • add Polar billing integration (customer state lookup + checkout creation) and environment wiring for the den-control-plane service
  • update deploy workflow/docs with optional paywall configuration and add AGENT_FOCUS.md operational testing guide

Testing

  • pnpm install
  • pnpm --filter @openwork/den-control-plane build

Notes

  • End-to-end paywall verification on deployed dev requires setting Polar IDs/secrets first (POLAR_ACCESS_TOKEN, POLAR_PRODUCT_ID, POLAR_BENEFIT_ID, DEN_POLAR_FEATURE_GATE_ENABLED=true).

@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-share Ready Ready Preview, Comment Feb 21, 2026 4:53pm
openwork-software Ready Ready Preview, Comment Feb 21, 2026 4:53pm

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@benjaminshafii benjaminshafii merged commit 1870cd1 into dev Feb 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant